package com.woshua.behaviormodel;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import java.util.Arrays;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        RecyclerView rcvContent=findViewById(R.id.recycler_view);

        rcvContent.setLayoutManager(new LinearLayoutManager(this));
        rcvContent.setAdapter(new StringAdapter(Arrays.asList("1","2","1","2","1","2",
                "1","2","1","2","1","2","1","2","1","2","1","2","1","2","1","2","1","2",
                "1","2","1","2","1","2","1","2","1","2","1","2","1","2","1","2","1","2",
                "1","2","1","2","1","2","1","2","1","2","1","2","1","2",
                "1","2","1","2","1","2","1","2","1","2","1","2","1","2","1","2",
                "1","2","1","2","1","2","1","2","1","2","1","2","1","2","1","2")));
    }
}
